home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 8
/
QRZ Ham Radio Callsign Database - Volume 8.iso
/
pc
/
files
/
t_unix
/
j109lxa4.tar
/
pop.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-04
|
1KB
|
50 lines
/*
filename -- POP.H
author -- Mike Stockett, WA7DYX
additional hacking by Allen Gwinn, N5CKP
*/
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif
#define BUF_LEN 128
#include <fcntl.h>
/* ---------------- common server data structures ---------------- */
/* POP server control block */
struct pop_scb {
int socket; /* socket number for this connection */
char state; /* server state */
#define LSTN 0
#define AUTH 1
#define MBOX 2
#define ITEM 3
#define NEXT 4
#define DONE 5
char buf[BUF_LEN], /* input line buffer */
count, /* line buffer length */
username[64]; /* user/folder name */
FILE *wf; /* work folder file pointer */
int folder_len, /* number of msgs in current folder */
msg_num; /* current msg number */
long msg_len; /* length of current msg */
int msg_status_size; /* size of the message status array */
long curpos, /* current msg's position in file */
folder_file_size, /* length of the current folder file, in bytes */
nextpos; /* next msg's position in file */
unsigned int folder_modified, /* mail folder contents modified flag */
*msg_status; /* message status array pointer */
};
#define NULLSCB (struct pop_scb *)0
/* ------------------------ end of header file ---------------------------- */